package mapreduce;

public class JobConf {
	
	public JobConf(RecordFeeder feeder, RecordWriter writer, Mapper mapper, Reducer reducer){
		m_feeder = feeder;
		m_writer = writer;
		m_mapper = mapper;
		m_reducer = reducer;
		m_partSize = 100000;
	}
	
	public int getPartSize(){
		return m_partSize;
	}
	
	public Mapper getMapper(){
		return m_mapper;
	}
	
	public Reducer getReducer(){
		return m_reducer;
	}
	
	public RecordFeeder getFeeder(){
		return m_feeder;
	}
	
	public RecordWriter getWriter(){
		return m_writer;
	}
	
	public void setPartSize(int partSize){
		m_partSize = partSize;
	}
	
	public void setMapper(Mapper mapper){
		m_mapper = mapper;
	}
	
	public void setReducer(Reducer reducerClass){
		m_reducer = reducerClass;
	}
	
	public void setFeeder(RecordFeeder feeder){
		m_feeder = feeder;
	}
	
	public void setWriter(RecordWriter writer){
		m_writer = writer;
	}
	
	RecordFeeder m_feeder;
	RecordWriter m_writer;
	Mapper m_mapper;
	Reducer m_reducer;
	int m_partSize;
}
